package me.j360.springboot.simple.bean.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotNull;

/**
 * Created with springbootweb -> me.j360.springboot.simple.bean.config.
 * User: min_xu
 * Date: 2015/7/29
 * Time: 11:36
 * 说明：
 */

@Component
public class SystemConfig {

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    //校验
    @NotNull
    @Value("${system.name}")
    private String name;
}
